package com.hand.htodo.util;

public abstract class LambdaClass {
    public static void forEg() {
        lambdaInterfaceDemo((a)-> System.out.println("自定义函数式接口"));
    }
    //函数式接口参数
    static void lambdaInterfaceDemo(LambdaFunctionalInterface i){
        System.out.println(i);
    }

    public static void main(String[] args) {
        LambdaFunctionalInterface lambdaFunctionalInterface = a -> System.out.println("a");
        lambdaFunctionalInterface.f("a");
        //forEg();
    }
}
